package com.systemdevelopment.mainproject.View;

import java.util.HashMap;
import java.util.Map;

public class oneInstanceController {
    public static Map<String,Object>oneInstanceControllers= new HashMap<>();
    public oneInstanceController()
    {
        oneInstanceControllers.put(this.getClass().getSimpleName(),this);
    }
    public static Object getController(String className)
    {
        return oneInstanceControllers.getOrDefault(className, null);
    }
}
